
package me.zhengjie.service.dto;

import lombok.Data;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import me.zhengjie.annotation.Query;

/**
* @website https://el-admin.vip
* @author IQW
* @date 2022-07-18
**/
@Data
public class AppHolidayQueryCriteria{

    @Query(blurry = "nickName")
    private String blurry;

    @Query(type = Query.Type.BETWEEN)
    private List<Timestamp> createTime;

    //以开始时间查询
//    @Query(type = Query.Type.BETWEEN,propName = "startTime" )
//    private List<Timestamp> startTimes;

    //状态 0待审批、1通过、2不通过、3撤销
    @Query(type = Query.Type.EQUAL)
    private Integer status;

    @Query(propName = "status", type = Query.Type.IN)
    private Set<Integer> statusIn = new HashSet<>();

    //我发起的
    @Query(type = Query.Type.EQUAL)
    private Integer userId;

    //我收到的
    @Query(type = Query.Type.EQUAL)
    private Integer userId1;
}